Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add custom timezone amagi #3

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

add custom timezone amagi #3

wants to merge 13 commits into from

Conversation

samarth23b
Copy link

@samarth23b samarth23b commented Jan 30, 2024

THESE ARE THE ENVIRONMENT VARIABLES THAT NEEDS TO BE SET IN values.yaml

ENV["AMAGI_DST_DATE"]
it should have the date at which the dst switch will happen in "yyyymmdd" format.
example: for 13st february 2024 it should be "20240213"

ENV["AMAGI_DST_SWITCH_TIME"]
it should have the time at which the dst switch will happen in hh::mm::ss format.
example: for 2:30 am it should be 02:30:00

ENV["AMAGI_DST_INITIAL_OFFSET"]
it should have the initial offset of the amagi timezone in minutes.
example: for UTC+5:30 it should be 330.

ENV["AMAGI_DST_SWITCH_OFFSET"]
it should have the final offset after dst switch of the amagi timezone in minutes.
example: for UTC+6:30 it should be 390.

Also, tzinfo-gem needs to be ugraded when upgrading rails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant